package com.tengfei.main.course.domain.bo;


import com.tengfei.common.core.validate.EditGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 资源业务对象 cs_res
 *
 * @author tengfei
 * @date 2022-07-26
 */

@Data
@ApiModel("资源业务对象")
public class ResBo {

    /**
     * 资源id
     */
    @ApiModelProperty(value = "资源id")
    @NotNull(message = "资源id不能为空",groups = {EditGroup.class})
    private Long resId;

    /**
     * 资源名称
     */
    @ApiModelProperty(value = "资源名称", required = true)
    @NotBlank(message = "资源名称不能为空", groups = { EditGroup.class })
    private String resName;

    /**
     * 资源类型
     */
    @ApiModelProperty(value = "资源类型")
    private Integer resType;


}
